﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StockControlSystem
{
    class Stock
    {
        private int m_key;
        private string m_name;
        private string m_barCode;
        private double m_price;
        private int m_threshold;
        private int m_numbItems;
        public List<Supplier> m_suppliers;

        public Stock(int key, string name, string barCode, double price, int threshold, int numbIterms)
        {
            m_key = key;
            m_name = name;
            m_barCode = barCode;
            m_price = price;
            m_threshold = threshold;
            m_numbItems = numbIterms;
            m_suppliers = new List<Supplier>();
        }

        public void AddSupplier(Supplier sup)
        {
            m_suppliers.Add(sup);
        }
    }
}
